import request from '@/utils/request'

// 查询全局附件列表
export function listScmAttachmentLinkage(query) {
  return request({
    url: '/scm/scmAttachmentLinkage/list',
    method: 'get',
    params: query
  })
}

// 查询全局附件详细
export function getScmAttachmentLinkage(id) {
  return request({
    url: '/scm/scmAttachmentLinkage/' + id,
    method: 'get'
  })
}

// 新增全局附件
export function addScmAttachmentLinkage(data) {
  return request({
    url: '/scm/scmAttachmentLinkage',
    method: 'post',
    data: data
  })
}

// 修改全局附件
export function updateScmAttachmentLinkage(data) {
  return request({
    url: '/scm/scmAttachmentLinkage',
    method: 'put',
    data: data
  })
}

// 删除全局附件
export function delScmAttachmentLinkage(id) {
  return request({
    url: '/scm/scmAttachmentLinkage/' + id,
    method: 'delete'
  })
}
